package com.example.tliasfight.config;

import com.example.tliasfight.pojo.TestHello;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
//@ConditionalOnProperty(name ="name",havingValue = "Tom")
public class MyConfig
{

   @Bean
   public TestHello testHello()
   {
      return new TestHello();
   }

}
